<!--
 * @Date: 2021-11-05 15:47:20
 * @LastEditors: 秀儿
 * @LastEditTime: 2021-11-05 16:31:38
 * @filePurpose: 
-->
<template>
  <div id="app">
    <div ref="pdf" class="pdf_box">
      <img alt="Vue logo" src="./assets/logo.png" />
      <HelloWorld msg="Welcome to Your Vue.js App" />
    </div>
    <button @click="create">按钮</button>
  </div>
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  components: {
    HelloWorld,
  },
  methods:{
    async create(){
      let res = await this.$create_pdf(this.$refs.pdf)
      debugger
    }
  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.pdf_box{
  width: 800px;
}
</style>
